package com.iwhalecloud.citybrain.flow.platform.manager.application.service.impl.task;

import com.iwhalecloud.citybrain.flow.platform.manager.application.service.TaskCreatedPostProcessor;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.repository.FlowTitleExpressionResultRepository;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

/**
 * @author lzb
 * @date 2021/1/6 下午5:20
 */
@Service
@Order(40)
public class FlowTitleExpressionProcessor implements TaskCreatedPostProcessor {


    @Autowired
    FlowTitleExpressionResultRepository flowTitleExpressionResultRepository;


    @Override
    public void process(TaskEntity taskEntity) {
        flowTitleExpressionResultRepository.analysisTitleExpression(taskEntity);
    }
}
